﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.ComponentModel;
using System.Windows;

namespace SpriteExtractor.ViewModel
{
    namespace Metadata
    {
        public static class CommandViewModelMetadata
        {
            public static PropertyPath CommandPath { get { return new PropertyPath("Command"); } }
        }
    }

    public class CommandViewModel : ViewModelBase
    {
        public ICommand Command { get; protected set; }

        public CommandViewModel(string displayName, ICommand command)
        {
            if (command == null)
                throw new ArgumentNullException("command");
            if (String.IsNullOrEmpty(displayName))
                throw new ArgumentException("displayName");

            DisplayName = displayName;
            Command = command;
        }
    }
}
